define(function () {
    var config = {};
    var hostHome = "http://192.168.1.103:3000";
    var hostOffice = "http://172.16.2.73:3000";

    config.getEnv = function () {
        return "office"; // "home"
    };

    config.getHost = function () {
        if (config.getEnv() === "home") {
            return hostHome;
        }
        return hostOffice;
    };

    // get all admin
    var urlAdminList = '/api/v1/admin/list';
    config.getUrlAdminList = function () {
        return urlAdminList;
    };

    var urlAdminOne = '/api/v1/admin/idxxx';
    config.getUrlAdminOne = function (id) {
        // console.log(urlAdminOne.replace(/idxxx/g, id));
        return urlAdminOne.replace(/idxxx/g, id);
    };


    return config;
});
